/**
 * Copyright &copy; 2016 CNJSON All rights reserved.
 */
package com.hongsuan.pplive.modules.live.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cnjson.db.service.CrudService;
import com.cnjson.db.persistence.Page;
import com.hongsuan.pplive.modules.live.dao.LivePresentRecordDao;
import com.hongsuan.pplive.modules.live.entity.LivePresentRecord;

/**
 * 单表生成Service
 * @author cgli
 * @version 2016-04-18
 */
@Service
@Transactional(readOnly = true)
public class LivePresentRecordService extends CrudService<LivePresentRecordDao, LivePresentRecord> {

	public LivePresentRecord get(String id) {
		return super.get(id);
	}
	
	public LivePresentRecord findOneByLineNo(String lineNo) {
		return dao.findOneByLineNo(lineNo);
	}

	public List<LivePresentRecord> findList(LivePresentRecord livePresentRecord) {
		return super.findList(livePresentRecord);
	}
	
	

	public Page<LivePresentRecord> findPage(Page<LivePresentRecord> page, LivePresentRecord livePresentRecord) {
		return super.findPage(page, livePresentRecord);
	}

	@Transactional(readOnly = false)
	public void save(LivePresentRecord livePresentRecord) {
		super.save(livePresentRecord);
	}

	@Transactional(readOnly = false)
	public void delete(LivePresentRecord livePresentRecord) {
		super.delete(livePresentRecord);
	}

}